package com.google.bling.client.widget;

import com.google.bling.client.GWTUtil;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class PerUserAmountTotalWidget extends Composite {
  private VerticalPanel vPanel;
  private Label percentLabel;
  private Label amountLabel;

  public PerUserAmountTotalWidget() {
    initWidget(vPanel = new VerticalPanel());
    vPanel.add(GWTUtil.label("Total", "amount-box"));
    vPanel.add(amountLabel = GWTUtil.label("", "amount-box"));
    vPanel.add(percentLabel = GWTUtil.label("", "amount-box"));
  }

  public void setAmount(int amount) {
    amountLabel.setText("" + amount);
  }

  public void setPercent(int percent) {
    percentLabel.setText("" + percent);
  }
}
